package com.lastproject.ejb.dao;

import java.util.List;

import javax.ejb.Remote;

import com.lastproject.dto.QuestionDTO;
import com.lastproject.dto.SurveyDTO;

@Remote
public interface QuestionDAORemote {

	void create(QuestionDTO entity);
	void edit(QuestionDTO entity);
	void remove(QuestionDTO entity);
	QuestionDTO findById(int id);
	List<QuestionDTO> findAll();
	List<QuestionDTO> getQuestionListBySurveyId(int id);
	QuestionDTO findLastByText(String question);
	Object findLastByTextAndSurvey(String question, SurveyDTO surveyDTO);
}
